package com.zmn.plat.dubbo.interfaces.part;

import java.util.List;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

import com.zmn.common.dto2.ResponseDTO;
import com.zmn.plat.common.dto.part.PartSkuRelationDRO;
import com.zmn.plat.dubbo.utils.DubboConsts;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;

/**
 * 配件拆分远程服务
 *
 * @author xiangjunming
 * @since 2019/03/27 10:18:54
 */
@Api(value = "配件拆分服务", tags = {"配件拆分"})
public interface PartSkuRelationListRemoteService {

    /**
     * 查询配件拆分关系
     *
     * @param oneSkuIds
     *            the one sku id
     * @return the response dto
     */
    @ApiOperation(value = "查询配件拆分关系", response = ResponseDTO.class, tags = {"列表"})
    ResponseDTO<List<PartSkuRelationDRO>> listByOneSkuIds(@NotEmpty(message = "oneSkuIds参数不能为空且个数不能超过" + DubboConsts.MAX_PARAM_LENGTH) @Size(min = 1, max = DubboConsts.MAX_PARAM_LENGTH,
        message = "oneSkuIds参数不能为空且个数不能超过" + DubboConsts.MAX_PARAM_LENGTH) @ApiParam(value = "配件id集合", required = true) List<Integer> oneSkuIds);

}
